package com.acoreful.acf2java.admin.config;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import com.acoreful.acf2java.admin.modules.auth.support.security.Encryption;

@Component
public class AuthConfig {
	private Logger logger=LoggerFactory.getLogger(AuthConfig.class);
	@Value("${auth.aesKey:}")
    private String aesKey;
	@PostConstruct
	public void init() {
		logger.info("*********************auth.aesKey:{}",aesKey);
	}
	@Bean
	Encryption build(){
		return new Encryption(aesKey);
	}
}
